const TokenKey = 'Token';
const Username ='userName';
const Userid='userId';
const UserAvatar = 'userAvatar';

export function getToken() {
  return sessionStorage.getItem(TokenKey);
}

export function setToken(token) {
  return sessionStorage.setItem(TokenKey, token);
}

export function removeToken() {
  return sessionStorage.removeItem(TokenKey);
}

export function getUserName() {
    return sessionStorage.getItem(Username);
}

export function setUserName(userName) {
    return sessionStorage.setItem(Username, userName);
}

export function removeUserName() {
    return sessionStorage.removeItem(Username);
}

export function getUserId() {
    return sessionStorage.getItem(Userid);
}

export function setUserId(userId) {
    return sessionStorage.setItem(Userid, userId);
}

export function removeUserId() {
    return sessionStorage.removeItem(Userid);
}

export function getUserAvatar() {
  return sessionStorage.getItem(UserAvatar);
}

export function setUserAvatar(avatar) {
  return sessionStorage.setItem(UserAvatar,avatar);
}

export function removeUserAvatar() {
  return sessionStorage.removeItem(UserAvatar);
}